package exam.ccwtest;

import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;
import android.widget.*;

public class c06_HandleEvent extends Activity {
	public void onCreate (Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		View vw = new MyView(this);
		setContentView(vw);
	}
	
	protected class MyView extends View {
		public MyView (Context context) {
			super(context);
		}
		
		public boolean onTouchEvent (MotionEvent event) {
			super.onTouchEvent(event);
			if (event.getAction() == MotionEvent.ACTION_DOWN) {
				Toast.makeText(c06_HandleEvent.this, "터치 했음.", Toast.LENGTH_SHORT).show();
				return true;
			}
			return false;
		}
		
	}
	
}
















